<div class='login-window password_set'>
	<div class='container'>
		<div class='weui-flex'>
			<div class='weui-flex__item login-window-title hidden-xs' style="padding:50px;">
				<h1>欢迎加入“重卡汇”</h1>
			</div>
			<div class='login-window-container bg-blur-white'>
					<div>
						<div cache='user' style='padding:10px;' class='bc-info' data-port='http://api.hongyanche.com/user/info'>
							<headimgurl info=i><img class='headimg-xs'/></headimgurl> <user_name info=1></user_name> 
							<small mute>请设置您的密码</small>
						</div>
						<!-- <i class='i i-mail'></i> -->
					</div>
					{include file="module:user-password" /}
				<div class='weui-btn-area'>
					<a onclick="javascript:history.back()" class='weui-btn weui-btn_default'>返回</a>
				</div>
			</div>
		</div>
	</div>
</div>
<script>
	$(window).on("login-success-tel",function(){
		INFO.cache.user = null;
		$("[cache='user']").each(function(index,el){
			INFO.reload(el);
		})
		history.back();
	})
	$('.password_set .password-vcode').on('focus', function(event) {
		if($(".vcode").hasClass('active')) return;
		$(".vcode").addClass('active');
		$(".vcode").attr('src','/vcode')
	});
	$('.password_set .vcode').on('click', function(event) {
		$(".vcode").addClass('active');
		$(".vcode").attr('src','/vcode')
	});
	$(window).on("password-success-set",function(){
		INFO.cache.user = null;
		$("[cache='user']").each(function(index,el){
			INFO.reload(el);
		})
		history.back();
	})
</script>